﻿Ext.Loader.setPath('iMobileS', appPath + 'app');

Ext.application({
    name: "iMobileS",
    models: ["Categories", "Products", "Customers", "Regions", "Employees", "Shippers"],
    stores: ["Categories", "Products", "Customers", "Regions", "Employees", "Shippers"],
    controllers: ["MobileS"],
    views: ["CategoriesContainer", "Categories", "ProductsContainer", "Products", "ProductDetailsContainer", "CustomerContainer", "CheckoutContainer", "Selections"],
    launch: function () {
        var categoriesContainer = {
            xtype: "categoriescontainer"
        }
        var productsContainer = {
            xtype: "productscontainer"
        }
        var productDetailsContainer = {
            xtype: "productdetailscontainer"
        }
        var customerContainer = {
            xtype: "customercontainer"
        }
        var checkoutContainer = {
            xtype: "checkoutcontainer"
        }
        Ext.Viewport.add([categoriesContainer, productsContainer, productDetailsContainer, customerContainer, checkoutContainer]);
    }
});
